//
// Created by bxw57 on 2024/4/21.
//

#ifndef CPPPRACTICE_TEST_H
#define CPPPRACTICE_TEST_H

#include "Add.h"
#include "Sub.h"

class Test{
public:
    Test(){
//        Add ff(1,2);
//        Sub sub(1, 23);
//        cout << test(ff) << endl;
//        cout << test(sub) << endl;
        Calculator* cal = new Add(1,2);
        cout << cal->getRes() << endl;
        delete cal;
    }
    double test(Calculator& cal) {
        return cal.getRes();
    }
};
#endif //CPPPRACTICE_TEST_H
